#ifndef FILESELECT_H
#define FILESELECT_H

#include <QtGui/QDialog>
#include <QModelIndex>
#include <QDirModel>

namespace Ui {
    class FileSelect;
}

	class FileSelect : public QDialog {
		Q_OBJECT
	public:
		FileSelect(QWidget *parent = 0);
		~FileSelect();
		void Initialize(bool isFileSelect);

	protected:
		void changeEvent(QEvent *e);

	private:
		Ui::FileSelect *m_ui;
		QDirModel _model;
		QModelIndex _modelIndex;
		bool _isFileSelect;

	private slots:
		void on_button_cancel_clicked();
		void on_button_ok_clicked();

	signals:
		void sigFileSeleted(QString, QString);
		void sigDirectorySelected(QString dirPath);
};

#endif // FILESELECT_H
